
public class Testprint {
	public static void main(String[] args) {
		
	String s1 = "aaaaaaa";
	String ss = "aaaaaaa(['10.232.129.64','10.232.129.63']))";
	int start = ss.indexOf('[');
	int end = ss.indexOf(']') + 1;
	String sub = ss.substring(start, end);
	System.out.println(sub);
	System.out.println(ss.indexOf(s1));
	}
	
}
